package com.base.bean;

import java.sql.Timestamp;

/**
 * Image entity. @author MyEclipse Persistence Tools
 */

public class Image implements java.io.Serializable {

	// Fields

	private Integer id;
	private String fileName,discription,mediaId,path,longitude,latitude,timestr;
	private Integer creator;
	private Timestamp created;
	private Integer state;
	private Integer type;
	private Integer checked;

	// Constructors

	/** default constructor */
	public Image() {
	}

	/** minimal constructor */
	public Image(Integer id, Timestamp created) {
		this.id = id;
		this.created = created;
	}

	/** full constructor */
	public Image(Integer id, String fileName, Integer creator,
			Timestamp created, Integer state, Integer type, Integer checked) {
		this.id = id;
		this.fileName = fileName;
		this.creator = creator;
		this.created = created;
		this.state = state;
		this.type = type;
		this.checked = checked;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Integer getCreator() {
		return this.creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public Timestamp getCreated() {
		return this.created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getChecked() {
		return this.checked;
	}

	public void setChecked(Integer checked) {
		this.checked = checked;
	}

	public String getDiscription() {
		discription=(discription==null?"":discription);
		return discription;
	}

	public void setDiscription(String discription) {
		
		this.discription = discription;
	}

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getTimestr() {
		
		timestr=(timestr==null?"":timestr);
		return timestr;
	}

	public void setTimestr(String timestr) {
		this.timestr = timestr;
	}

}